# encoding=utf-8

# _*_ coding:utf-8 _*_
# @author : Joyamon
# @time : 2023-1-6 16:51
# @file : read_yaml.py

import yaml


def read_data(file):
    """
    读取yaml文件内容
    :param file: 读取目标文件
    :return:读取的数据
    """
    f = open(file, 'r', encoding='utf-8')
    data = yaml.load(f, Loader=yaml.SafeLoader)
    return data